FireStore と Android RecyclerView
Adapterを作ってくれるLibraryがある: FirebaseUI-Android/firestore at master · firebase/FirebaseUI-Android
Android Architecture Componentsのlifecycleと結びつけることが可能
FirebaseUI offers two types of RecyclerView adapters for Cloud Firestore
1. FirestoreRecyclerAdapter... Best used with small result sets
あとは、自動で更新してくれる(listenする)
onDataChange, onError で、基本的なケースの対応?はできる?
2. FirestorePagingAdapter Best used with large, static data sets
Android Paging Library、 Android RecyclerView を使う
onLoadingStateChanged(loadingState:State)で変化時の処理は書ける
元々な話
listViewへのデータをどう入れればよいのか?
FireStore priceを考えて、必要なdocumetだけ読みたい。
java - How to paginate Firestore with Android? - Stack Overflow
カーソルの使用
クエリカーソルを使用したデータのページ設定  |  Firebase
Managing large result sets
Cloud Firestore has several features to help you manage queries that return a large number of results:
Cursors, which allow you to resume a long-running query.
Page tokens, which help you paginate the query results.
Limits, which specify how many results to retrieve.
Offsets, which allow you to skip a fixed number of documents.
price構造は?
Cloud Firestore Pricing  |  Cloud Firestore  |  Google Cloud
#Firestore #Android_View_ListView